package com.cn.springcloudwechat.serviceImpl.proxy;

import com.cn.springcloudwechat.mapper.mapper.proxy.ProxyUserMapper;
import com.cn.springcloudwechat.model.YmUser;
import com.cn.springcloudwechat.model.proxy.YmProxyUser;
import com.cn.springcloudwechat.service.proxy.ProxyUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("ProxyUserService")
@Transactional(rollbackFor = Exception.class)
public class ProxyUserServicelmpl implements ProxyUserService{
    @Autowired
    private ProxyUserMapper proxyUserMapper;

    @Override
    public Integer updateUserQrcode(YmUser ymUser) {
        return proxyUserMapper.updateUserQrcode(ymUser);
    }

    @Override
    public Integer selectCheckProxyUser(YmProxyUser ymProxyUser) {
        return proxyUserMapper.selectCheckProxyUser(ymProxyUser);
    }

    @Override
    public Integer insertProxyUser(YmProxyUser ymProxyUser) {
        return proxyUserMapper.insertProxyUser(ymProxyUser);
    }
}
